<?php

namespace App\Vilidate\delivery;

/**
 * user控制器下的验证规则类
 */
class PaymentController
{
    public $index = ['rule'=>[], 'msg'=>[]];
    public $backhaul = ['rule'=>[], 'msg'=>[]];

    public $getOrderDetail = ['rule'=>[], 'msg'=>[]];


    public $refundOrder = [
        'rule'=>[
            'payment_id' => 'required|integer',
            'refund_reason' => 'required|integer',

        ],
        'msg'=>[
            'payment_id.required' => '订单ID不能为空',
            'refund_reason.required' => '退款原因不能为空'
        ]
    ];

    public $batchBackhaul = [
        'rule'=>[
            'ids' => 'required|array',

        ],
        'msg'=>[
            'ids.required' => 'id不能为空',
            'ids.array' => 'id应为数组'
        ]
    ];
}